﻿using System.Windows.Controls.Primitives;

namespace CommonUtils
{
    public static class SelectorExtension
    {
        public static void SelectRandom(this Selector selector)
        => selector.SelectedIndex = RandomUtil.Get(selector.Items.Count);

        public static void SelectNext(this Selector selector)
       => selector.SelectedIndex = (selector.SelectedIndex + 1) % selector.Items.Count;
    }
}
